{
Alisa_Barkar
13/09/12
This program can sort numbers in file
}
program sortirovkaVfile;

{$APPTYPE CONSOLE}

uses
  SysUtils;
var
  n, i, t, j: integer;
  mass:array of integer;
begin
  assignFile(input, 'CHislo.txt');
  reset(input);
  assignFile(output, 'Exit.txt');
  rewrite (output);
  read (n);
  setlength(mass, n);
  for i:=0 to n-1 do
    read(mass[i]);
  for j:=1 to n-j-1 do
    for i:=0 to   n-1 do
      if(mass[i]>mass[i+1]) then
      begin
        t:=mass[i];
        mass[i]:=mass[i+1];
        mass[i+1]:=t;
      end;
  for i:=0 to n-1 do
  write (mass[i]);
end.
